package com.zzy.librarytest.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 页面跳转
 */
@Controller
public class PageController {
    @GetMapping("/")
   public String index(){
       return "index";
   }

   @GetMapping("/homepage/addbookpage")
    public String addBookpage(){
        return "book/addbook";
    }

    @GetMapping("/homepage/deletebookpage")
    public String deleteBookpage(){
        return "book/deletebook";
    }

    @GetMapping("/homepage/selectbookpage")
    public String selectbookpage(){
        return "book/selectbook";
    }

    @GetMapping("/homepage/updatebookpage")
    public String updatebookpage(){
        return "book/updatebook";
    }

    @GetMapping("/registerpage")
    public String registeruser(){
        return "user/registeruser";
    }

    @GetMapping("/homepage/amenduserpage")
    public String amenduserpage(){
        return "user/amenduser";
    }

    @GetMapping("/homepage/deleteuserpage")
    public String deleteuserpage(){
        return "user/deleteuser";
    }

    @GetMapping("/homepage/alluserpage")
    public String alluserpage(){
        return "redirect:/homepage/alluser";
    }

    @GetMapping("/homepage/addrecordpage")
    public String addrecordpage(){
        return "record/addrecord";
    }

    @GetMapping("/homepage/returnbookpage")
    public String returnoperationpage(){
        return "redirect:/record/returnbook";
    }

    @GetMapping("/record/allretrunrecordpage")
    public String allretrunrecordpage(){
        return "redirect:/record/allretrunrecord";
    }

    @GetMapping("/homepage/returnoperationpage2")
    public String returnoperationpage2(){
        return "record/returnoperation";
    }

    @GetMapping("/think")
    public String think(){
        return "think";
    }

    @GetMapping("/help")
    public String help(){
        return "help";
    }

    @GetMapping("/buy")
    public String buy(){
        return "buy";
    }


}
